package com.team.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class RepairExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RepairExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andEidIsNull() {
            addCriterion("Eid is null");
            return (Criteria) this;
        }

        public Criteria andEidIsNotNull() {
            addCriterion("Eid is not null");
            return (Criteria) this;
        }

        public Criteria andEidEqualTo(Integer value) {
            addCriterion("Eid =", value, "eid");
            return (Criteria) this;
        }

        public Criteria andEidNotEqualTo(Integer value) {
            addCriterion("Eid <>", value, "eid");
            return (Criteria) this;
        }

        public Criteria andEidGreaterThan(Integer value) {
            addCriterion("Eid >", value, "eid");
            return (Criteria) this;
        }

        public Criteria andEidGreaterThanOrEqualTo(Integer value) {
            addCriterion("Eid >=", value, "eid");
            return (Criteria) this;
        }

        public Criteria andEidLessThan(Integer value) {
            addCriterion("Eid <", value, "eid");
            return (Criteria) this;
        }

        public Criteria andEidLessThanOrEqualTo(Integer value) {
            addCriterion("Eid <=", value, "eid");
            return (Criteria) this;
        }

        public Criteria andEidIn(List<Integer> values) {
            addCriterion("Eid in", values, "eid");
            return (Criteria) this;
        }

        public Criteria andEidNotIn(List<Integer> values) {
            addCriterion("Eid not in", values, "eid");
            return (Criteria) this;
        }

        public Criteria andEidBetween(Integer value1, Integer value2) {
            addCriterion("Eid between", value1, value2, "eid");
            return (Criteria) this;
        }

        public Criteria andEidNotBetween(Integer value1, Integer value2) {
            addCriterion("Eid not between", value1, value2, "eid");
            return (Criteria) this;
        }

        public Criteria andEqucategoryIsNull() {
            addCriterion("equCategory is null");
            return (Criteria) this;
        }

        public Criteria andEqucategoryIsNotNull() {
            addCriterion("equCategory is not null");
            return (Criteria) this;
        }

        public Criteria andEqucategoryEqualTo(String value) {
            addCriterion("equCategory =", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryNotEqualTo(String value) {
            addCriterion("equCategory <>", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryGreaterThan(String value) {
            addCriterion("equCategory >", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryGreaterThanOrEqualTo(String value) {
            addCriterion("equCategory >=", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryLessThan(String value) {
            addCriterion("equCategory <", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryLessThanOrEqualTo(String value) {
            addCriterion("equCategory <=", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryLike(String value) {
            addCriterion("equCategory like", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryNotLike(String value) {
            addCriterion("equCategory not like", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryIn(List<String> values) {
            addCriterion("equCategory in", values, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryNotIn(List<String> values) {
            addCriterion("equCategory not in", values, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryBetween(String value1, String value2) {
            addCriterion("equCategory between", value1, value2, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryNotBetween(String value1, String value2) {
            addCriterion("equCategory not between", value1, value2, "equcategory");
            return (Criteria) this;
        }

        public Criteria andRidIsNull() {
            addCriterion("Rid is null");
            return (Criteria) this;
        }

        public Criteria andRidIsNotNull() {
            addCriterion("Rid is not null");
            return (Criteria) this;
        }

        public Criteria andRidEqualTo(Integer value) {
            addCriterion("Rid =", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidNotEqualTo(Integer value) {
            addCriterion("Rid <>", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidGreaterThan(Integer value) {
            addCriterion("Rid >", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidGreaterThanOrEqualTo(Integer value) {
            addCriterion("Rid >=", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidLessThan(Integer value) {
            addCriterion("Rid <", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidLessThanOrEqualTo(Integer value) {
            addCriterion("Rid <=", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidIn(List<Integer> values) {
            addCriterion("Rid in", values, "rid");
            return (Criteria) this;
        }

        public Criteria andRidNotIn(List<Integer> values) {
            addCriterion("Rid not in", values, "rid");
            return (Criteria) this;
        }

        public Criteria andRidBetween(Integer value1, Integer value2) {
            addCriterion("Rid between", value1, value2, "rid");
            return (Criteria) this;
        }

        public Criteria andRidNotBetween(Integer value1, Integer value2) {
            addCriterion("Rid not between", value1, value2, "rid");
            return (Criteria) this;
        }

        public Criteria andEqunameIsNull() {
            addCriterion("equName is null");
            return (Criteria) this;
        }

        public Criteria andEqunameIsNotNull() {
            addCriterion("equName is not null");
            return (Criteria) this;
        }

        public Criteria andEqunameEqualTo(String value) {
            addCriterion("equName =", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameNotEqualTo(String value) {
            addCriterion("equName <>", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameGreaterThan(String value) {
            addCriterion("equName >", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameGreaterThanOrEqualTo(String value) {
            addCriterion("equName >=", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameLessThan(String value) {
            addCriterion("equName <", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameLessThanOrEqualTo(String value) {
            addCriterion("equName <=", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameLike(String value) {
            addCriterion("equName like", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameNotLike(String value) {
            addCriterion("equName not like", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameIn(List<String> values) {
            addCriterion("equName in", values, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameNotIn(List<String> values) {
            addCriterion("equName not in", values, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameBetween(String value1, String value2) {
            addCriterion("equName between", value1, value2, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameNotBetween(String value1, String value2) {
            addCriterion("equName not between", value1, value2, "equname");
            return (Criteria) this;
        }

        public Criteria andRepairnumberIsNull() {
            addCriterion("repairNumber is null");
            return (Criteria) this;
        }

        public Criteria andRepairnumberIsNotNull() {
            addCriterion("repairNumber is not null");
            return (Criteria) this;
        }

        public Criteria andRepairnumberEqualTo(Integer value) {
            addCriterion("repairNumber =", value, "repairnumber");
            return (Criteria) this;
        }

        public Criteria andRepairnumberNotEqualTo(Integer value) {
            addCriterion("repairNumber <>", value, "repairnumber");
            return (Criteria) this;
        }

        public Criteria andRepairnumberGreaterThan(Integer value) {
            addCriterion("repairNumber >", value, "repairnumber");
            return (Criteria) this;
        }

        public Criteria andRepairnumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("repairNumber >=", value, "repairnumber");
            return (Criteria) this;
        }

        public Criteria andRepairnumberLessThan(Integer value) {
            addCriterion("repairNumber <", value, "repairnumber");
            return (Criteria) this;
        }

        public Criteria andRepairnumberLessThanOrEqualTo(Integer value) {
            addCriterion("repairNumber <=", value, "repairnumber");
            return (Criteria) this;
        }

        public Criteria andRepairnumberIn(List<Integer> values) {
            addCriterion("repairNumber in", values, "repairnumber");
            return (Criteria) this;
        }

        public Criteria andRepairnumberNotIn(List<Integer> values) {
            addCriterion("repairNumber not in", values, "repairnumber");
            return (Criteria) this;
        }

        public Criteria andRepairnumberBetween(Integer value1, Integer value2) {
            addCriterion("repairNumber between", value1, value2, "repairnumber");
            return (Criteria) this;
        }

        public Criteria andRepairnumberNotBetween(Integer value1, Integer value2) {
            addCriterion("repairNumber not between", value1, value2, "repairnumber");
            return (Criteria) this;
        }

        public Criteria andRepairdateIsNull() {
            addCriterion("repairDate is null");
            return (Criteria) this;
        }

        public Criteria andRepairdateIsNotNull() {
            addCriterion("repairDate is not null");
            return (Criteria) this;
        }

        public Criteria andRepairdateEqualTo(Date value) {
            addCriterionForJDBCDate("repairDate =", value, "repairdate");
            return (Criteria) this;
        }

        public Criteria andRepairdateNotEqualTo(Date value) {
            addCriterionForJDBCDate("repairDate <>", value, "repairdate");
            return (Criteria) this;
        }

        public Criteria andRepairdateGreaterThan(Date value) {
            addCriterionForJDBCDate("repairDate >", value, "repairdate");
            return (Criteria) this;
        }

        public Criteria andRepairdateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("repairDate >=", value, "repairdate");
            return (Criteria) this;
        }

        public Criteria andRepairdateLessThan(Date value) {
            addCriterionForJDBCDate("repairDate <", value, "repairdate");
            return (Criteria) this;
        }

        public Criteria andRepairdateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("repairDate <=", value, "repairdate");
            return (Criteria) this;
        }

        public Criteria andRepairdateIn(List<Date> values) {
            addCriterionForJDBCDate("repairDate in", values, "repairdate");
            return (Criteria) this;
        }

        public Criteria andRepairdateNotIn(List<Date> values) {
            addCriterionForJDBCDate("repairDate not in", values, "repairdate");
            return (Criteria) this;
        }

        public Criteria andRepairdateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("repairDate between", value1, value2, "repairdate");
            return (Criteria) this;
        }

        public Criteria andRepairdateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("repairDate not between", value1, value2, "repairdate");
            return (Criteria) this;
        }

        public Criteria andRepairfactoryIsNull() {
            addCriterion("repairFactory is null");
            return (Criteria) this;
        }

        public Criteria andRepairfactoryIsNotNull() {
            addCriterion("repairFactory is not null");
            return (Criteria) this;
        }

        public Criteria andRepairfactoryEqualTo(String value) {
            addCriterion("repairFactory =", value, "repairfactory");
            return (Criteria) this;
        }

        public Criteria andRepairfactoryNotEqualTo(String value) {
            addCriterion("repairFactory <>", value, "repairfactory");
            return (Criteria) this;
        }

        public Criteria andRepairfactoryGreaterThan(String value) {
            addCriterion("repairFactory >", value, "repairfactory");
            return (Criteria) this;
        }

        public Criteria andRepairfactoryGreaterThanOrEqualTo(String value) {
            addCriterion("repairFactory >=", value, "repairfactory");
            return (Criteria) this;
        }

        public Criteria andRepairfactoryLessThan(String value) {
            addCriterion("repairFactory <", value, "repairfactory");
            return (Criteria) this;
        }

        public Criteria andRepairfactoryLessThanOrEqualTo(String value) {
            addCriterion("repairFactory <=", value, "repairfactory");
            return (Criteria) this;
        }

        public Criteria andRepairfactoryLike(String value) {
            addCriterion("repairFactory like", value, "repairfactory");
            return (Criteria) this;
        }

        public Criteria andRepairfactoryNotLike(String value) {
            addCriterion("repairFactory not like", value, "repairfactory");
            return (Criteria) this;
        }

        public Criteria andRepairfactoryIn(List<String> values) {
            addCriterion("repairFactory in", values, "repairfactory");
            return (Criteria) this;
        }

        public Criteria andRepairfactoryNotIn(List<String> values) {
            addCriterion("repairFactory not in", values, "repairfactory");
            return (Criteria) this;
        }

        public Criteria andRepairfactoryBetween(String value1, String value2) {
            addCriterion("repairFactory between", value1, value2, "repairfactory");
            return (Criteria) this;
        }

        public Criteria andRepairfactoryNotBetween(String value1, String value2) {
            addCriterion("repairFactory not between", value1, value2, "repairfactory");
            return (Criteria) this;
        }

        public Criteria andRepairpriceIsNull() {
            addCriterion("repairPrice is null");
            return (Criteria) this;
        }

        public Criteria andRepairpriceIsNotNull() {
            addCriterion("repairPrice is not null");
            return (Criteria) this;
        }

        public Criteria andRepairpriceEqualTo(Double value) {
            addCriterion("repairPrice =", value, "repairprice");
            return (Criteria) this;
        }

        public Criteria andRepairpriceNotEqualTo(Double value) {
            addCriterion("repairPrice <>", value, "repairprice");
            return (Criteria) this;
        }

        public Criteria andRepairpriceGreaterThan(Double value) {
            addCriterion("repairPrice >", value, "repairprice");
            return (Criteria) this;
        }

        public Criteria andRepairpriceGreaterThanOrEqualTo(Double value) {
            addCriterion("repairPrice >=", value, "repairprice");
            return (Criteria) this;
        }

        public Criteria andRepairpriceLessThan(Double value) {
            addCriterion("repairPrice <", value, "repairprice");
            return (Criteria) this;
        }

        public Criteria andRepairpriceLessThanOrEqualTo(Double value) {
            addCriterion("repairPrice <=", value, "repairprice");
            return (Criteria) this;
        }

        public Criteria andRepairpriceIn(List<Double> values) {
            addCriterion("repairPrice in", values, "repairprice");
            return (Criteria) this;
        }

        public Criteria andRepairpriceNotIn(List<Double> values) {
            addCriterion("repairPrice not in", values, "repairprice");
            return (Criteria) this;
        }

        public Criteria andRepairpriceBetween(Double value1, Double value2) {
            addCriterion("repairPrice between", value1, value2, "repairprice");
            return (Criteria) this;
        }

        public Criteria andRepairpriceNotBetween(Double value1, Double value2) {
            addCriterion("repairPrice not between", value1, value2, "repairprice");
            return (Criteria) this;
        }

        public Criteria andRecordpeopleIsNull() {
            addCriterion("recordPeople is null");
            return (Criteria) this;
        }

        public Criteria andRecordpeopleIsNotNull() {
            addCriterion("recordPeople is not null");
            return (Criteria) this;
        }

        public Criteria andRecordpeopleEqualTo(String value) {
            addCriterion("recordPeople =", value, "recordpeople");
            return (Criteria) this;
        }

        public Criteria andRecordpeopleNotEqualTo(String value) {
            addCriterion("recordPeople <>", value, "recordpeople");
            return (Criteria) this;
        }

        public Criteria andRecordpeopleGreaterThan(String value) {
            addCriterion("recordPeople >", value, "recordpeople");
            return (Criteria) this;
        }

        public Criteria andRecordpeopleGreaterThanOrEqualTo(String value) {
            addCriterion("recordPeople >=", value, "recordpeople");
            return (Criteria) this;
        }

        public Criteria andRecordpeopleLessThan(String value) {
            addCriterion("recordPeople <", value, "recordpeople");
            return (Criteria) this;
        }

        public Criteria andRecordpeopleLessThanOrEqualTo(String value) {
            addCriterion("recordPeople <=", value, "recordpeople");
            return (Criteria) this;
        }

        public Criteria andRecordpeopleLike(String value) {
            addCriterion("recordPeople like", value, "recordpeople");
            return (Criteria) this;
        }

        public Criteria andRecordpeopleNotLike(String value) {
            addCriterion("recordPeople not like", value, "recordpeople");
            return (Criteria) this;
        }

        public Criteria andRecordpeopleIn(List<String> values) {
            addCriterion("recordPeople in", values, "recordpeople");
            return (Criteria) this;
        }

        public Criteria andRecordpeopleNotIn(List<String> values) {
            addCriterion("recordPeople not in", values, "recordpeople");
            return (Criteria) this;
        }

        public Criteria andRecordpeopleBetween(String value1, String value2) {
            addCriterion("recordPeople between", value1, value2, "recordpeople");
            return (Criteria) this;
        }

        public Criteria andRecordpeopleNotBetween(String value1, String value2) {
            addCriterion("recordPeople not between", value1, value2, "recordpeople");
            return (Criteria) this;
        }

        public Criteria andRepairstateIsNull() {
            addCriterion("repairState is null");
            return (Criteria) this;
        }

        public Criteria andRepairstateIsNotNull() {
            addCriterion("repairState is not null");
            return (Criteria) this;
        }

        public Criteria andRepairstateEqualTo(Integer value) {
            addCriterion("repairState =", value, "repairstate");
            return (Criteria) this;
        }

        public Criteria andRepairstateNotEqualTo(Integer value) {
            addCriterion("repairState <>", value, "repairstate");
            return (Criteria) this;
        }

        public Criteria andRepairstateGreaterThan(Integer value) {
            addCriterion("repairState >", value, "repairstate");
            return (Criteria) this;
        }

        public Criteria andRepairstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("repairState >=", value, "repairstate");
            return (Criteria) this;
        }

        public Criteria andRepairstateLessThan(Integer value) {
            addCriterion("repairState <", value, "repairstate");
            return (Criteria) this;
        }

        public Criteria andRepairstateLessThanOrEqualTo(Integer value) {
            addCriterion("repairState <=", value, "repairstate");
            return (Criteria) this;
        }

        public Criteria andRepairstateIn(List<Integer> values) {
            addCriterion("repairState in", values, "repairstate");
            return (Criteria) this;
        }

        public Criteria andRepairstateNotIn(List<Integer> values) {
            addCriterion("repairState not in", values, "repairstate");
            return (Criteria) this;
        }

        public Criteria andRepairstateBetween(Integer value1, Integer value2) {
            addCriterion("repairState between", value1, value2, "repairstate");
            return (Criteria) this;
        }

        public Criteria andRepairstateNotBetween(Integer value1, Integer value2) {
            addCriterion("repairState not between", value1, value2, "repairstate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}